package com.black.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.black.app.domain.AppUser;
import com.black.app.domain.req.my.MyUserPostInformationEditReq;
import com.black.app.domain.req.my.MyUserPostInformationReq;
import com.black.app.domain.resp.my.MyUserPostHomeResp;
import com.black.app.domain.resp.my.MyUserPostInformationResp;
import com.black.app.domain.resp.my.MyUserPostResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author tonneyyy
 * @description 针对表【app_user(手机端用户)】的数据库操作Mapper
 * @createDate 2024-09-28 15:01:49
 * @Entity com.exam.app.domain.AppUser
 */
public interface AppUserMapper extends BaseMapper<AppUser> {

    List<MyUserPostInformationResp> postInformation(@Param("req") MyUserPostInformationReq req);

    boolean updateUserInfo(@Param("req") MyUserPostInformationEditReq req);

    boolean updateUser(@Param("req") MyUserPostInformationEditReq req);

    boolean updateUsserPost(@Param("req") MyUserPostInformationEditReq req);

    List<MyUserPostResp> post(@Param("req") MyUserPostInformationReq req);

    MyUserPostInformationResp postInformationByUserId(Long userId);

    List<MyUserPostResp> postHomeByUserId(Long userId);
}




